-# Haml version of the Yii Contact Page
-#
  Copy this file to application.views.site
  Enable the Haml view renderer in your config file by configuring it as
  an application component named "viewRenderer" in the application configuration:
  array(
    'components'=>array(
      ......
      'viewRenderer'=>array(
        'class'=>'HamlViewRenderer',
        .... options ....
      ),
    ),
  )
  A good option is 'ugly'=>false to get nicely formatted XHTML
- $this->pageTitle=Yii::app()->name . ' - Contact Us'
%h1 Contact Us
- if(Yii::app()->user->hasFlash('contact'))
  .confirmation
    = Yii::app()->user->getFlash('contact')
- else
  %p
    If you have business inquiries or other questions, please fill out the
    following form to contact us. Thank you.
.yiiForm
  = CHtml::beginForm()
  = CHtml::errorSummary($contact)
  .simple
    = CHtml::activeLabel($contact,'name')
    = CHtml::activeTextField($contact,'name')
  .simple
    = CHtml::activeLabel($contact,'email')
    = CHtml::activeTextField($contact,'email')
  .simple
    = CHtml::activeLabel($contact,'subject')
    = CHtml::activeTextField($contact,'subject',array('size'=>60,'maxlength'=>128))
  .simple
    = CHtml::activeLabel($contact,'body')
    = CHtml::activeTextArea($contact,'body',array('rows'=>6, 'cols'=>50))
  - if(extension_loaded('gd'))
    .simple
      = CHtml::activeLabel($contact,'verifyCode')
      - $this->widget('CCaptcha')
      = CHtml::activeTextField($contact,'verifyCode')
	  %p.hint Please enter the letters as they are shown in the image above.
	    %br
	    Letters are not case-sensitive.
  .action
    = CHtml::submitButton('Submit')
  = CHtml::endForm();
  / yiiForm